package com.key.common.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * @author wen
 * @create 2023-02-23 11:29
 */
@ApiModel("查找领用单")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReceiptDTO {
    //当前页码数
    @ApiModelProperty(name = "currentPage",notes = "当前页码数",dataType = "int",required = true)
    private Integer currentPage;
    //每页显示记录数
    @ApiModelProperty(name = "pageSize",notes = "每页显示记录数",dataType = "int",required = true)
    private Integer pageSize;
    //单据状态
    @ApiModelProperty(name = "state",notes = "“已审批，未审批”",dataType = "String",required = true)
    private String state;
    @ApiModelProperty(name = "receiptNumber",notes = "领用单号",dataType = "String")
    private String receiptNumber;
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd",timezone="GMT+8")
    @ApiModelProperty(name = "receiptDate",notes = "领用日期",required = true,value = "yyyy-MM-dd")
    private Timestamp receiptDate;
    @ApiModelProperty(name = "receipter",notes = "领用人",dataType = "String")
    private String receipter;
    @ApiModelProperty(name = "receiptCompany",notes = "领用后使用公司",dataType = "String")
    private String receiptCompany;
    @ApiModelProperty(name = "receiptDepartment",notes = "领用后使用部门",dataType = "String")
    private String receiptDepartment;
    @ApiModelProperty(name = "receiptRegion",notes = "领用后区域",dataType = "String")
    private String receiptRegion;
    @ApiModelProperty(name = "receiptStoragePlace",notes = "领用后存放地",dataType = "String")
    private String receiptStoragePlace;
    @ApiModelProperty(name = "receiptRemarks",notes = "领用备注",dataType = "String")
    private String receiptRemarks;
    @ApiModelProperty(name = "handlers",notes = "处理人",dataType = "String")
    private String handlers;

}
